package com.flac.flacservice.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDate;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author DaYouZi
 * @since 2023-03-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="UserState对象", description="")
public class UserStatus implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "账号到期时间")
    private LocalDate expireTime;

    @ApiModelProperty(value = "有效期剩余多少天")
    private Integer validity;

    @ApiModelProperty(value = "到期状态")
    private Integer expireStatus;

    @ApiModelProperty(value = "登录状态")
    private Integer loginState;

    @ApiModelProperty(value = "创建时间")
    @JsonIgnore
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @JsonIgnore
    private LocalDateTime gmtModified;


}
